<!DOCTYPE html>
<html>
<head>
<?php echo $this->Html->charset(); ?>

<meta http-equiv="content-type" charset="utf-8">
<title><?php echo $title_for_layout; ?> - TENCENT ISUX Examiner</title>
<?php
    echo $this->Html->meta('icon');
    
    echo $this->Html->css(array('global.source'));
    
    echo $this->Html->css($pageStyles);
    
    echo $scripts_for_layout;
?>
</head>
<body>
<div id="header">
    <div class="g-inner">
        <h1 class="logo">TENCENT ISUX Examiner</h1>
        <?php echo $this->element('memberPanel', $member); ?>

    </div>
</div>
<div id="body">
    <div class="g-inner">
        <nav class="global-nav" role="global navigation">
            <ul>
            	<li<?php echo $routers['controller'] == 'pages' && $routers['action'] == 'home' ? ' class="current"' : ''; ?>><?php echo $this->Html->link(__('Home', true), '/'); ?></li>
            	<li<?php echo $routers['controller'] == 'users' ? ' class="current"' : ''; ?>><?php echo $this->Html->link(__('Users Manage', true), array('controller'=>'users','action'=>'index')); ?></li>
            	<li<?php echo $routers['controller'] == 'tests' ? ' class="current"' : ''; ?>><?php echo $this->Html->link(__('Tests Manage', true), array('controller'=>'tests','action'=>'index')); ?></li>
            	<li<?php echo $routers['controller'] == 'settings' ? ' class="current"' : ''; ?>><?php echo $this->Html->link(__('Settings', true), array('controller'=>'settings','action'=>'index')); ?></li>
			    </ul>
        </nav>
        <?php echo $this->Session->flash(); ?>

        <div class="complex g-wrap">
            <div class="side">
                <?php echo $this->element('pageSider', $routers); ?>

            </div>
            <div class="main">
                <?php echo $content_for_layout; ?>

            </div>
        </div>
    </div>
</div>
<div id="footer">
    <div class="g-inner">
        <span class="copyright">&copy; 2011 Tencent <a href="http://isux.tencent.com/" title="<?php __('Click to visit the ISUX website.');?>">ISUX</a> All Rights Reserved. </span>
        <span class="powered">Powered By: <a href="http://ofcss.com/" title="<?php __('Click to visit the author\' website.');?>" rel="external">KaireeWu</a></span>
    </div>
</div>
<?php echo $this->element('sql_dump'); ?>

</body>
</html>